package com.open.pokergames.comm.repository.entity;

import java.io.Serializable;

public class UserEntity implements Serializable {

    private String id;

    // 账号
    private String account;

    // 用户名
    private String userName;

    // 用户头像
    private String userAvatar;

    // 性别：男/女
    private String sex;

    // 手机号
    private String phoneNum;

    // 状态
    private int state;
    // 房卡
    private String roles;
    // 房卡数
    private int roomCards;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getPhoneNum() {
        return phoneNum;
    }

    public void setPhoneNum(String phoneNum) {
        this.phoneNum = phoneNum;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public String getUserAvatar() {
        return userAvatar;
    }

    public void setUserAvatar(String userAvatar) {
        this.userAvatar = userAvatar;
    }

    public String getRoles() {
        return roles;
    }

    public void setRoles(String roles) {
        this.roles = roles;
    }

    public int getRoomCards() {
        return roomCards;
    }

    public void setRoomCards(int roomCards) {
        this.roomCards = roomCards;
    }

    public static UserEntity getDefaultUser() {
        UserEntity userEntity = new UserEntity();
        userEntity.setAccount("123456");
        userEntity.setUserAvatar("https://img2.baidu.com/it/u=2421505363,3507499484&fm=26&fmt=auto&gp=0.jpg");
        userEntity.setUserName("默认用户");
        return userEntity;
    }

    public UserEntity() {
    }

    public UserEntity(String account, String userName, String userAvatar) {
        this.account = account;
        this.userName = userName;
        this.userAvatar = userAvatar;
    }

}
